package com.explorati.design_pattern.behavior.visitor.example;

public class RunVisitor implements ComputerVisitor {

	@Override
	public void visitCPU(CPU cpu) {
		System.out.println("型号为" + cpu.getType());
	}

	@Override
	public void visitHarddisk(Harddisk harddisk) {
		System.out.println("硬盘型号" + harddisk.getType());
	}

}
